body{
    /* 购物车容器 */
.cart-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* 购物车头部 */
.cart-header {
    margin-bottom: 20px;
}

.cart-title {
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-title i {
    color: #1890ff;
}

/* 购物车表格 */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height:350px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.cart-table thead th {
    background: #fafafa;
    font-weight: 500;
}

/* 商品信息样式 */
.item-info {
    display: flex;
    gap: 15px;

}

.item-image {
    width: 60px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-title {
    margin: 0 0 5px;
    font-size: 16px;
}

.item-title a {
    color: #333;
    text-decoration: none;
}

.item-attrs {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* 数量控制 */
.quantity-control {
    display: flex;
    align-items: center;
    width: 120px;
}

.quantity-btn {
    width: 28px;
    height: 29px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    height: 27px;
    border: 1px solid #ddd;
    text-align: center;
    margin: 0 -1px;
}

/* 价格样式 */
.item-price,
.item-subtotal {
    color: #ff4d4f;
    font-weight: 500;
}

/* 购物车底部 */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.batch-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.total-info {
    text-align: right;
}

.total-price {
    color: #ff4d4f;
    font-size: 20px;
    font-weight: bold;
}

.checkout-btn {
    padding: 8px 30px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* 空购物车样式 */
.empty-cart {
    text-align: center;
    padding: 50px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-cart i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 20px;
}

.go-shopping {
    display: inline-block;
    padding: 8px 30px;
    background: #1890ff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* 推荐区域整体样式 */
.recommended-section {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 标题区域样式 */
.section-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid #1890ff;
}

/* 书籍网格容器 */
.book-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 一行5本书 */
    gap: 20px;
    padding: 20px;
}

/* 单本书籍卡片样式 */
.bookItem {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 400px;
}

/* 书籍图片容器 */
.book-image {
    width: 100%;
    height: 200px;
}

.book-image img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* 悬停效果 */
.bookItem:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bookItem:hover .book-image img {
    transform: scale(1.05);
}

/* 书籍信息样式 */
.book-info {
    padding: 15px;
    margin-top: 130px;
}

.book-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.book-condition {
    color: #1890ff;
    background: rgba(24,144,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.current-price {
    color: #ff4d4f;
    font-size: 18px;
    font-weight: 700;
}

    .book-image {
        height: 160px;
    }

    .section-title {
        font-size: 18px;
    }
    .cart-item button {
        padding: 5px;
        background-color: transparent;
        color: #999;
        border: none;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
    }
    .cart-item button {
        padding: 6px 12px;
        background-color: transparent;
        color: #666;
        border: none;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s;
        border-radius: 2px;
    }
    
    .cart-item button:hover {
        color: #ff4d4f;
        background-color: rgba(255, 77, 79, 0.1);
    }    
    
}
